package com.anxin.common;

import lombok.Data;
import java.util.List;

@Data
public class PageResult<T> {
    private long total;      // 总条数
    private long pages;      // 总页数
    private long current;    // 当前页
    private long size;       // 每页条数
    private List<T> records; // 数据列表

    public PageResult(long total, long pages, long current, long size, List<T> records) {
        this.total = total;
        this.pages = pages;
        this.current = current;
        this.size = size;
        this.records = records;
    }
} 